package net.hn.hnms.biz.steelyard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.hn.hnms.biz.steelyard.domain.SteelyardHis;
import net.hn.hnms.biz.steelyard.vo.SteelyardHistoryVO;
import net.hn.hnms.biz.steelyard.vo.SteelyardStatisticsVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Set;

public interface SteelyardHisMapper extends BaseMapper<SteelyardHis> {

    Page<SteelyardHistoryVO> pageList(Page page, @Param("deviceName") String deviceName, @Param("now") Date now, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate, @Param("mineCode") String mineCode);

    List<SteelyardHis> selectHistoryList(@Param("deviceCodeSet") Set<String> deviceCodeSet, @Param("dataTimeSet") Set<String> dataTimeSet,@Param("mineCode") String mineCode);


    List<SteelyardStatisticsVO> selectYearNewList(@Param("dataTime") Date dataTime, @Param("mineCode") String mineCode);


    List<SteelyardHistoryVO> selectDeviceList(@Param("mineCode") String mineCode);

    List<SteelyardStatisticsVO> selectMonthNewList(@Param("dataTime") Date dataTime,@Param("mineCode") String mineCode);
}









